<script setup lang='ts'>
import { ref, reactive, defineProps } from 'vue'
import setPx from '../../../utils/setPx';
const { style, imgsrc } = defineProps(['style', 'imgsrc'])
console.log(imgsrc);

</script>
<!-- //小毛病切记 小毛病切记  小毛病切记   -->
<template>
    <div class="mimg">

        <img class="my_imgh" :style="setPx(style)" :src="imgsrc" alt="" :draggable="false">
    </div>
</template>

<style lang='scss' scoped>
.my_imgh {

    position: absolute; //要定位,否则效果不生效
    width: 300px;
    height: 150px;
}
</style>